<?php
$id=$_GET['id'];
$dbh = new  PDO ( 'mysql:host=localhost;dbname=mhsw' , 'root' , 'root' );
$sql='select * from company where id='.$id;
$arr=$dbh->query($sql)->fetch(PDO::FETCH_ASSOC);
echo $arr['a'];